package myzd.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zks
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Users {
  private Long id;

  private String mobile;

  private String name;

  private String email;

  private String password;

  private String rememberToken;

  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date createdAt;

  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date updatedAt;
}
